#ifndef _FUNCTiON_H
#define _FUNCTION_H
#endif

#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>

//歌曲结构体
typedef struct
{
    char song_name[50];
    char singer[50];
}SONG;

//多媒体播放枚举
typedef enum 
{
    PLAYING,//播放
    PAUSED,//暂停
    STOPPED,//停止
}PlayState;

void player_play();
void player_pause();
void player_stop();
void player_next();
void player_prev();
void player_show_status();

//车辆状态结构体
typedef struct 
{
    int speed;
    int fuel;
    int temp;
}VehicleStatus;

void update(VehicleStatus*v);
void display(VehicleStatus*v);
